package com.vhall.component.entity.room;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 房间-考试关联表
 *
 * @author yongzheng.xu
 */
@Data
@TableName("room_exam_lk")
public class RoomExamLkEntity implements Serializable {

    private static final long serialVersionUID = 5190654267547766660L;

    @TableId(value = "id", type = IdType.AUTO)
    @JsonProperty("id")
    private Long id;

    @JsonProperty("exam_id")
    private Integer examId;

    @JsonProperty("room_id")
    private String roomId;


    /**
     * 用户id
     */
    @TableField("account_id")
    private Integer accountId;

    /**
     * 是否发布，1是0否
     */
    @TableField("publish")
    private Integer publish;

    /**
     * 试卷发布时间
     */
    @TableField("publish_time")
    @JsonProperty("publish_time")
    private Integer publishTime;


    /**
     * 是否绑定，1是0否
     */
    @TableField("bind")
    private Integer bind;

    /**
     * 是否有答案，1是0否
     */
    @TableField("answer")
    private Integer answer;


    /**
     * 考试是否结束 0-未结束 1-已结束
     */
    @TableField("is_finish")
    private Integer isFinish;

    /**
     * 结束时间
     */
    @TableField("finish_time")
    private Long finishTime;

    /**
     * 是否评分 0-未评分 1-已评分
     */
    @TableField("is_grade")
    private Integer isGrade;

    /**
     * 是否发布评分 0-未发布 1-发布
     */
    @TableField("is_push_grade")
    private Integer isPushGrade;

    @TableField("extend")
    private String extend;


    @TableField("created_at")
    @JsonProperty("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    @JsonProperty("updated_at")
    private LocalDateTime updatedAt;

    @TableField("deleted_at")
    @JsonProperty("deleted_at")
    private LocalDateTime deletedAt;

}
